﻿@model eShop.Web.Models.CouponListModel
@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>优惠劵-@{@WorkContext.ShopConfig.SiteTitle}</title>
    @Html.Raw(WorkContext.ShopConfig.SEOKeyword)
    @Html.Raw(WorkContext.ShopConfig.SEODescription)
    <link href="@{@WorkContext.CSSCDN}/themes/default/css/base.css" rel="stylesheet" type="text/css" />
    <link href="@{@WorkContext.CSSCDN}/themes/default/css/ucenter.css" rel="stylesheet" type="text/css" />
    <script src="@{@WorkContext.ScriptCDN}/scripts/jquery.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/scripts/common.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/scripts/ucenter.user.js" type="text/javascript"></script>
    <script type="text/javascript">
        uid = @WorkContext.Uid;
        isGuestSC = @WorkContext.ShopConfig.IsGuestSC;
        scSubmitType = @WorkContext.ShopConfig.SCSubmitType;
    </script>
</head>

<body>
@Html.Partial("_header")

<div class="bigBox" id="member">
<div class="box">
@Html.Partial("_menu")
<div id="memberR">
<h2 id="memberRT">优惠劵</h2>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb-void">
  <thead>
    <tr>
      <th width="100px" align="left">编号</th>
      <th align="left">类别</th>
      <th width="80px" align="left">面值</th>
      <th width="160px" align="left">有效期</th>
    </tr>
  </thead>
  <tbody>
    @foreach (DataRow row in Model.CouponList.Rows)
    {
    <tr>
        <td align="left">@row["couponsn"]</td>
        <td align="left">@row["name"]</td>
        <td align="left">@row["money"]</td>
        <td align="center">
            @if (TypeHelper.ObjectToInt(row["useexpiretime"]) > 0)
            {
            @row["activatetime"]<br />@TypeHelper.ObjectToDateTime(row["activatetime"]).AddDays(TypeHelper.ObjectToInt(row["useexpiretime"]))
            }
            else
            {
            @row["usestarttime"]<br />@row["useendtime"]
            }
        </td>
    </tr>
    }
  </tbody>
</table>

</div>

<div class="clear"></div>
</div>
<div class="clear"></div>
</div>


@Html.Partial("_footer")
</body>
</html>